﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;

namespace BUS
{
    public class SanPhamGocBUS
    {
        public List<shop_sanphamgoc> LayTatCaSanPhamGoc()
        {
            SanPhamGocDAO dao = new SanPhamGocDAO();
            return dao.LayTatCaSanPhamGoc();
        }
        public void ThemSanPhamGoc(shop_sanphamgoc addObject)
        {
            SanPhamGocDAO dao = new SanPhamGocDAO();
            dao.ThemSanPhamGoc(addObject);
        }
        public void XoaSanPhamGoc(int Ma)
        {
            SanPhamGocDAO dao = new SanPhamGocDAO();
            dao.XoaSanPhamGoc(Ma);
        }
        public void CapNhatSanPhamGoc(int Ma, shop_sanphamgoc editObject)
        {
            SanPhamGocDAO dao = new SanPhamGocDAO();
            dao.CapNhatSanPhamGoc(Ma, editObject);
        }
        public List<shop_sanphamgoc> LayTatCaSanPhamGocNam()
        {
            SanPhamGocDAO dao = new SanPhamGocDAO();
            return dao.LayTatCaSanPhamGocNam();
        }
        public List<shop_sanphamgoc> LayTatCaSanPhamGocNu()
        {
            SanPhamGocDAO dao = new SanPhamGocDAO();
            return dao.LayTatCaSanPhamGocNu();
        }
        public int LayMaSanPhamGoc(String src)
        {
            SanPhamGocDAO dao = new SanPhamGocDAO();
            return dao.LayMaSanPhamGoc(src);
        }
        public shop_sanphamgoc LaySanPhamGoc(int ma)
        {
            SanPhamGocDAO dao = new SanPhamGocDAO();
            return dao.LaySanPhamGoc(ma);
        }
    }

}
